package nl.scalasim

import nl.scalasim.actors.traits.SimulationActor

/**
 * A single square on the map. 
 *
 * @author Yigal Duppen
 * @since Oct 6, 2010
 */
class Tile(val terrain: Terrain) {

  private var _road: Boolean = false
  private var _structure: Option[SimulationActor] = None

  def structure: Option[SimulationActor] = _structure

  def structure_=(s: Option[SimulationActor]) {
    _structure = s
  }

  def road: Boolean = _road

  def road_=(r: Boolean) {
    _road = r
  }

}


class Terrain

case object Normal extends Terrain
case object Mountains extends Terrain
case object Water extends Terrain


